package com.kanasco.vision.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import bb.access.po.CustomerVendorAddressInfo;
import bb.common.BB2TimeFactory;

public class Sales {
	  private String salesOrderNumber;
	  private String lastUser;
	  private Date lastChangeDate = BB2TimeFactory.getBB2Time();
	  private Date adate;
	  private String origin = "";
	  private String arNetSet = "";
	  private String arTaxSet = "";
	  private BigDecimal arSub = BigDecimal.ZERO;
	  private BigDecimal totalDiscount = BigDecimal.ZERO;
	  private BigDecimal subTotal = BigDecimal.ZERO;
	  private BigDecimal arShip = BigDecimal.ZERO;
	  private BigDecimal arOpen = BigDecimal.ZERO;
	  private BigDecimal totalTax = BigDecimal.ZERO;
	  private BigDecimal totalFreight = BigDecimal.ZERO;
	  private BigDecimal grantTotal = BigDecimal.ZERO;
	  private BigDecimal margin = BigDecimal.ZERO;
	  private BigDecimal marginPercent = BigDecimal.ZERO;
	  private BigDecimal totalCost = BigDecimal.ZERO;
	  private BigDecimal marginByStdCost = BigDecimal.ZERO;
	  private BigDecimal marginPercentByStdCost = BigDecimal.ZERO;
	  private BigDecimal totalStdCost = BigDecimal.ZERO;
	  private BigDecimal totalPaidInvoice = BigDecimal.ZERO;
	  private BigDecimal arPaidGl = BigDecimal.ZERO;
	  private BigDecimal arGl1Recorded = BigDecimal.ZERO;
	  private BigDecimal arGl2Paid = BigDecimal.ZERO;
	  private String arpNumber = "";
	  private BigDecimal arPrepay = BigDecimal.ZERO;
	  private BigDecimal arPrepayDue = BigDecimal.ZERO;
	  private BigDecimal arPrepayGl = BigDecimal.ZERO;
	  private BigDecimal arPrepayApply = BigDecimal.ZERO;
	  private String changeOrder = "00";
	  private String customerId = "";
	  private String billToId = "";
	  private String customerPo = "";
	  private String customerEmail = "";
	  private String contact = "";
	  private String status = "NOT REVIEWED";
	  private String shippingStatus = "";
	  private Date reviewedDate = null;
	  private String reviewedBy = "";
	  private Date delivery = null;
	  private Date desired = null;
	  private byte delay = 0;
	  private String priority = "";
	  private Date original = BB2TimeFactory.getBB2Time();
	  private Date actual = null;
	  private String shipToId = "";
	  private String shipVia = "";
	  private String carrier = "";
	  private String carrierAccount = "";
	  private String incoterm = "EXW";
	  private String incotermPlacePort = "";
	  private String shipAccout = "";
	  private String locate = "";
	  private String language = "";
	  private String currency = "";
	  private BigDecimal exchange = BigDecimal.ONE;
	  private String terms = "";
	  private Date salesOrderDate = BB2TimeFactory.getBB2Time();
	  private String salesman = "";
	  private short salesmanId = 0;
	  private String salesCodeId = "";
	  private String quoteNumber = "";
	  private String referenceSalesOrder = "";
	  private String requester = "";
	  private String projectName = "";
	  private String relatedDocument = "";
	  private String creditAccount = "";
	  private String bp = "";
	  private String salesOrderBoilerplate = "";
	  private String salesOrderComments = "";
	  private String salesOrderPrivateNotes = "";
	  private String coComments;
	  private String companyUnitId = "0";
	  private Integer version = new Integer(1);
	  private boolean hold = false;
	  private String opinion = "";
	  private CustomerVendorAddressInfo customerAddressInfo;
	  private CustomerVendorAddressInfo shipToAddressInfo;
	  private CustomerVendorAddressInfo billToAddressInfo;
	  private Set salesOrderItems = new HashSet();
	  private Set boilerplates = new HashSet();
	  private Set salesOrderDocuments = new HashSet();
	  private boolean byPos = false;
	  private String receiptNumber = "";
	  
	public String getSalesOrderNumber() {
		return salesOrderNumber;
	}
	public void setSalesOrderNumber(String salesOrderNumber) {
		this.salesOrderNumber = salesOrderNumber;
	}
	public String getLastUser() {
		return lastUser;
	}
	public void setLastUser(String lastUser) {
		this.lastUser = lastUser;
	}
	public Date getLastChangeDate() {
		return lastChangeDate;
	}
	public void setLastChangeDate(Date lastChangeDate) {
		this.lastChangeDate = lastChangeDate;
	}
	public Date getAdate() {
		return adate;
	}
	public void setAdate(Date adate) {
		this.adate = adate;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public String getArNetSet() {
		return arNetSet;
	}
	public void setArNetSet(String arNetSet) {
		this.arNetSet = arNetSet;
	}
	public String getArTaxSet() {
		return arTaxSet;
	}
	public void setArTaxSet(String arTaxSet) {
		this.arTaxSet = arTaxSet;
	}
	public BigDecimal getArSub() {
		return arSub;
	}
	public void setArSub(BigDecimal arSub) {
		this.arSub = arSub;
	}
	public BigDecimal getTotalDiscount() {
		return totalDiscount;
	}
	public void setTotalDiscount(BigDecimal totalDiscount) {
		this.totalDiscount = totalDiscount;
	}
	public BigDecimal getSubTotal() {
		return subTotal;
	}
	public void setSubTotal(BigDecimal subTotal) {
		this.subTotal = subTotal;
	}
	public BigDecimal getArShip() {
		return arShip;
	}
	public void setArShip(BigDecimal arShip) {
		this.arShip = arShip;
	}
	public BigDecimal getArOpen() {
		return arOpen;
	}
	public void setArOpen(BigDecimal arOpen) {
		this.arOpen = arOpen;
	}
	public BigDecimal getTotalTax() {
		return totalTax;
	}
	public void setTotalTax(BigDecimal totalTax) {
		this.totalTax = totalTax;
	}
	public BigDecimal getTotalFreight() {
		return totalFreight;
	}
	public void setTotalFreight(BigDecimal totalFreight) {
		this.totalFreight = totalFreight;
	}
	public BigDecimal getGrantTotal() {
		return grantTotal;
	}
	public void setGrantTotal(BigDecimal grantTotal) {
		this.grantTotal = grantTotal;
	}
	public BigDecimal getMargin() {
		return margin;
	}
	public void setMargin(BigDecimal margin) {
		this.margin = margin;
	}
	public BigDecimal getMarginPercent() {
		return marginPercent;
	}
	public void setMarginPercent(BigDecimal marginPercent) {
		this.marginPercent = marginPercent;
	}
	public BigDecimal getTotalCost() {
		return totalCost;
	}
	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}
	public BigDecimal getMarginByStdCost() {
		return marginByStdCost;
	}
	public void setMarginByStdCost(BigDecimal marginByStdCost) {
		this.marginByStdCost = marginByStdCost;
	}
	public BigDecimal getMarginPercentByStdCost() {
		return marginPercentByStdCost;
	}
	public void setMarginPercentByStdCost(BigDecimal marginPercentByStdCost) {
		this.marginPercentByStdCost = marginPercentByStdCost;
	}
	public BigDecimal getTotalStdCost() {
		return totalStdCost;
	}
	public void setTotalStdCost(BigDecimal totalStdCost) {
		this.totalStdCost = totalStdCost;
	}
	public BigDecimal getTotalPaidInvoice() {
		return totalPaidInvoice;
	}
	public void setTotalPaidInvoice(BigDecimal totalPaidInvoice) {
		this.totalPaidInvoice = totalPaidInvoice;
	}
	public BigDecimal getArPaidGl() {
		return arPaidGl;
	}
	public void setArPaidGl(BigDecimal arPaidGl) {
		this.arPaidGl = arPaidGl;
	}
	public BigDecimal getArGl1Recorded() {
		return arGl1Recorded;
	}
	public void setArGl1Recorded(BigDecimal arGl1Recorded) {
		this.arGl1Recorded = arGl1Recorded;
	}
	public BigDecimal getArGl2Paid() {
		return arGl2Paid;
	}
	public void setArGl2Paid(BigDecimal arGl2Paid) {
		this.arGl2Paid = arGl2Paid;
	}
	public String getArpNumber() {
		return arpNumber;
	}
	public void setArpNumber(String arpNumber) {
		this.arpNumber = arpNumber;
	}
	public BigDecimal getArPrepay() {
		return arPrepay;
	}
	public void setArPrepay(BigDecimal arPrepay) {
		this.arPrepay = arPrepay;
	}
	public BigDecimal getArPrepayDue() {
		return arPrepayDue;
	}
	public void setArPrepayDue(BigDecimal arPrepayDue) {
		this.arPrepayDue = arPrepayDue;
	}
	public BigDecimal getArPrepayGl() {
		return arPrepayGl;
	}
	public void setArPrepayGl(BigDecimal arPrepayGl) {
		this.arPrepayGl = arPrepayGl;
	}
	public BigDecimal getArPrepayApply() {
		return arPrepayApply;
	}
	public void setArPrepayApply(BigDecimal arPrepayApply) {
		this.arPrepayApply = arPrepayApply;
	}
	public String getChangeOrder() {
		return changeOrder;
	}
	public void setChangeOrder(String changeOrder) {
		this.changeOrder = changeOrder;
	}
	public String getCustomerId() {
		return customerId;
	}
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	public String getBillToId() {
		return billToId;
	}
	public void setBillToId(String billToId) {
		this.billToId = billToId;
	}
	public String getCustomerPo() {
		return customerPo;
	}
	public void setCustomerPo(String customerPo) {
		this.customerPo = customerPo;
	}
	public String getCustomerEmail() {
		return customerEmail;
	}
	public void setCustomerEmail(String customerEmail) {
		this.customerEmail = customerEmail;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getShippingStatus() {
		return shippingStatus;
	}
	public void setShippingStatus(String shippingStatus) {
		this.shippingStatus = shippingStatus;
	}
	public Date getReviewedDate() {
		return reviewedDate;
	}
	public void setReviewedDate(Date reviewedDate) {
		this.reviewedDate = reviewedDate;
	}
	public String getReviewedBy() {
		return reviewedBy;
	}
	public void setReviewedBy(String reviewedBy) {
		this.reviewedBy = reviewedBy;
	}
	public Date getDelivery() {
		return delivery;
	}
	public void setDelivery(Date delivery) {
		this.delivery = delivery;
	}
	public Date getDesired() {
		return desired;
	}
	public void setDesired(Date desired) {
		this.desired = desired;
	}
	public byte getDelay() {
		return delay;
	}
	public void setDelay(byte delay) {
		this.delay = delay;
	}
	public String getPriority() {
		return priority;
	}
	public void setPriority(String priority) {
		this.priority = priority;
	}
	public Date getOriginal() {
		return original;
	}
	public void setOriginal(Date original) {
		this.original = original;
	}
	public Date getActual() {
		return actual;
	}
	public void setActual(Date actual) {
		this.actual = actual;
	}
	public String getShipToId() {
		return shipToId;
	}
	public void setShipToId(String shipToId) {
		this.shipToId = shipToId;
	}
	public String getShipVia() {
		return shipVia;
	}
	public void setShipVia(String shipVia) {
		this.shipVia = shipVia;
	}
	public String getCarrier() {
		return carrier;
	}
	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}
	public String getCarrierAccount() {
		return carrierAccount;
	}
	public void setCarrierAccount(String carrierAccount) {
		this.carrierAccount = carrierAccount;
	}
	public String getIncoterm() {
		return incoterm;
	}
	public void setIncoterm(String incoterm) {
		this.incoterm = incoterm;
	}
	public String getIncotermPlacePort() {
		return incotermPlacePort;
	}
	public void setIncotermPlacePort(String incotermPlacePort) {
		this.incotermPlacePort = incotermPlacePort;
	}
	public String getShipAccout() {
		return shipAccout;
	}
	public void setShipAccout(String shipAccout) {
		this.shipAccout = shipAccout;
	}
	public String getLocate() {
		return locate;
	}
	public void setLocate(String locate) {
		this.locate = locate;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getCurrency() {
		return currency;
	}
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	public BigDecimal getExchange() {
		return exchange;
	}
	public void setExchange(BigDecimal exchange) {
		this.exchange = exchange;
	}
	public String getTerms() {
		return terms;
	}
	public void setTerms(String terms) {
		this.terms = terms;
	}
	public Date getSalesOrderDate() {
		return salesOrderDate;
	}
	public void setSalesOrderDate(Date salesOrderDate) {
		this.salesOrderDate = salesOrderDate;
	}
	public String getSalesman() {
		return salesman;
	}
	public void setSalesman(String salesman) {
		this.salesman = salesman;
	}
	public short getSalesmanId() {
		return salesmanId;
	}
	public void setSalesmanId(short salesmanId) {
		this.salesmanId = salesmanId;
	}
	public String getSalesCodeId() {
		return salesCodeId;
	}
	public void setSalesCodeId(String salesCodeId) {
		this.salesCodeId = salesCodeId;
	}
	public String getQuoteNumber() {
		return quoteNumber;
	}
	public void setQuoteNumber(String quoteNumber) {
		this.quoteNumber = quoteNumber;
	}
	public String getReferenceSalesOrder() {
		return referenceSalesOrder;
	}
	public void setReferenceSalesOrder(String referenceSalesOrder) {
		this.referenceSalesOrder = referenceSalesOrder;
	}
	public String getRequester() {
		return requester;
	}
	public void setRequester(String requester) {
		this.requester = requester;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getRelatedDocument() {
		return relatedDocument;
	}
	public void setRelatedDocument(String relatedDocument) {
		this.relatedDocument = relatedDocument;
	}
	public String getCreditAccount() {
		return creditAccount;
	}
	public void setCreditAccount(String creditAccount) {
		this.creditAccount = creditAccount;
	}
	public String getBp() {
		return bp;
	}
	public void setBp(String bp) {
		this.bp = bp;
	}
	public String getSalesOrderBoilerplate() {
		return salesOrderBoilerplate;
	}
	public void setSalesOrderBoilerplate(String salesOrderBoilerplate) {
		this.salesOrderBoilerplate = salesOrderBoilerplate;
	}
	public String getSalesOrderComments() {
		return salesOrderComments;
	}
	public void setSalesOrderComments(String salesOrderComments) {
		this.salesOrderComments = salesOrderComments;
	}
	public String getSalesOrderPrivateNotes() {
		return salesOrderPrivateNotes;
	}
	public void setSalesOrderPrivateNotes(String salesOrderPrivateNotes) {
		this.salesOrderPrivateNotes = salesOrderPrivateNotes;
	}
	public String getCoComments() {
		return coComments;
	}
	public void setCoComments(String coComments) {
		this.coComments = coComments;
	}
	public String getCompanyUnitId() {
		return companyUnitId;
	}
	public void setCompanyUnitId(String companyUnitId) {
		this.companyUnitId = companyUnitId;
	}
	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}
	public boolean isHold() {
		return hold;
	}
	public void setHold(boolean hold) {
		this.hold = hold;
	}
	public String getOpinion() {
		return opinion;
	}
	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}
	public CustomerVendorAddressInfo getCustomerAddressInfo() {
		return customerAddressInfo;
	}
	public void setCustomerAddressInfo(CustomerVendorAddressInfo customerAddressInfo) {
		this.customerAddressInfo = customerAddressInfo;
	}
	public CustomerVendorAddressInfo getShipToAddressInfo() {
		return shipToAddressInfo;
	}
	public void setShipToAddressInfo(CustomerVendorAddressInfo shipToAddressInfo) {
		this.shipToAddressInfo = shipToAddressInfo;
	}
	public CustomerVendorAddressInfo getBillToAddressInfo() {
		return billToAddressInfo;
	}
	public void setBillToAddressInfo(CustomerVendorAddressInfo billToAddressInfo) {
		this.billToAddressInfo = billToAddressInfo;
	}
	public Set getSalesOrderItems() {
		return salesOrderItems;
	}
	public void setSalesOrderItems(Set salesOrderItems) {
		this.salesOrderItems = salesOrderItems;
	}
	public Set getBoilerplates() {
		return boilerplates;
	}
	public void setBoilerplates(Set boilerplates) {
		this.boilerplates = boilerplates;
	}
	public Set getSalesOrderDocuments() {
		return salesOrderDocuments;
	}
	public void setSalesOrderDocuments(Set salesOrderDocuments) {
		this.salesOrderDocuments = salesOrderDocuments;
	}
	public boolean isByPos() {
		return byPos;
	}
	public void setByPos(boolean byPos) {
		this.byPos = byPos;
	}
	public String getReceiptNumber() {
		return receiptNumber;
	}
	public void setReceiptNumber(String receiptNumber) {
		this.receiptNumber = receiptNumber;
	}
	

}
